package com.example.weblogaspect.controller;

import com.example.weblogaspect.model.OperationLogPgDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * 测试用控制器
 */
@Slf4j
@RestController
public class IndexController {
    @GetMapping("/demo")
    public String demo() {
        return "demo";
    }

    @PostMapping("/demo")
    public String post(@RequestBody OperationLogPgDto ct) {
        log.info("ct={}", ct);
        return "demo";
    }
}
